home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
SCREEN
/
WRITE2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-07-21
|
1KB
|
30 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Demonstration; screen write #2 - ways of displaying text
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDEF, EFLIBSCR, CRT;
begin
with Screen do begin
Clear; { Clear the screen }
WriteXYColor (1, 1, 'String with foreground and background', Yellow, Black);
WriteXYAttribute (2, 2, 'String with attribute', 12);
SetColor (LightBlue, Black); { Change current attribute }
WriteXY (3, 3, 'String with current attribute');
WriteCodedXY (4, 4, 'String with string codes@LightCyan:Black@');
SetColor (LightGreen, Black);
GotoXY (5, 5); { Change position and current attribute }
Write ('String written at current cursor position');
FillArea (5, 5, 62, 5, '!', 16*Red); { Fill a line using the Screen object }
end;
end.